<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TRON-SDL: /home/antoine/Projets/tron-lif7/src/TableauDynamique.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TRON-SDL
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">TableauDynamique.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="TableauDynamique_8h_source.html">TableauDynamique.h</a>&quot;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="Mur_8h_source.html">Mur.h</a>&quot;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a5d99cce0e2fa7264c4f3720733265ee8"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a5d99cce0e2fa7264c4f3720733265ee8">TabDynGetCapacite</a> (const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *tabDyn)</td></tr>
<tr class="memitem:a334deff5c3a02d2edcbfe3a3f3ff268c"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a334deff5c3a02d2edcbfe3a3f3ff268c">TabDynGetTaille_utilisee</a> (const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *tabDyn)</td></tr>
<tr class="memitem:a97652ca47cabac75b55c4f903426829f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMur.html">Mur</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a97652ca47cabac75b55c4f903426829f">TabDynGetAd</a> (const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *tabDyn)</td></tr>
<tr class="memitem:ac3727554725b9dbecddb71139dc5e30d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#ac3727554725b9dbecddb71139dc5e30d">TabDynSetCapacite</a> (<a class="el" href="structTableauDynamique.html">TableauDynamique</a> *tabDyn, unsigned int capacite)</td></tr>
<tr class="memitem:a10623d69df4ce5b6456f98fda9365ae3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a10623d69df4ce5b6456f98fda9365ae3">TabDynSetTaille_utilisee</a> (<a class="el" href="structTableauDynamique.html">TableauDynamique</a> *tabDyn, unsigned int taille)</td></tr>
<tr class="memitem:a7639e87e155a70b5e5dc9966be1aa824"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a7639e87e155a70b5e5dc9966be1aa824">TabDynSetAd</a> (<a class="el" href="structTableauDynamique.html">TableauDynamique</a> *tabDyn, <a class="el" href="structMur.html">Mur</a> *ad)</td></tr>
<tr class="memitem:a7518cb6d43b8202ba9a00bfe99fc3276"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a7518cb6d43b8202ba9a00bfe99fc3276">initialiserTabDyn</a> (<a class="el" href="structTableauDynamique.html">TableauDynamique</a> *t)</td></tr>
<tr class="memitem:a23c700cab62fac5e751c347b9248dc18"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a23c700cab62fac5e751c347b9248dc18">testamentTabDyn</a> (<a class="el" href="structTableauDynamique.html">TableauDynamique</a> *t)</td></tr>
<tr class="memitem:a9e22637742e9add76172325982bf25e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a9e22637742e9add76172325982bf25e8">ajouterElementTabDyn</a> (<a class="el" href="structTableauDynamique.html">TableauDynamique</a> *t, <a class="el" href="structMur.html">Mur</a> e)</td></tr>
<tr class="memitem:a4613ebad51d49ffd47fcf53c829fa40e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMur.html">Mur</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a4613ebad51d49ffd47fcf53c829fa40e">valeurIemeElementTabDyn</a> (const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *t, unsigned int i)</td></tr>
<tr class="memitem:a541b35328a4b170e0dd9a42b8d33d47a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMur.html">Mur</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a541b35328a4b170e0dd9a42b8d33d47a">adresseIemeElementTabDyn</a> (const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *t, unsigned int i)</td></tr>
<tr class="memitem:aada509c790300e62cbf3178d939efc3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#aada509c790300e62cbf3178d939efc3e">modifierValeurIemeElementTabDyn</a> (<a class="el" href="structTableauDynamique.html">TableauDynamique</a> *t, <a class="el" href="structMur.html">Mur</a> e, unsigned int i)</td></tr>
<tr class="memitem:a0d10365670f81c1e95814816e88ddcbf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="TableauDynamique_8c.html#a0d10365670f81c1e95814816e88ddcbf">supprimerElementTabDyn</a> (<a class="el" href="structTableauDynamique.html">TableauDynamique</a> *t, int position)</td></tr>
</table>
<h2>Function Documentation</h2>
<a class="anchor" id="a541b35328a4b170e0dd9a42b8d33d47a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structMur.html">Mur</a>* adresseIemeElementTabDyn </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Precondition : t prealablement initialise, 0 &lt;= i &lt; tailleUtilisee(t) Resultat : retourne l'adresse du i+1eme ElementTD de t </p>

</div>
</div>
<a class="anchor" id="a9e22637742e9add76172325982bf25e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ajouterElementTabDyn </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMur.html">Mur</a>&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Precondition : t prealablement initialise Postcondition : L'element e est ajoute dans la premiere alveole inutilisee du tableau, la taille utilisee est incrementee de 1. Doublement de la capacite de t, si necessaire. </p>

</div>
</div>
<a class="anchor" id="a7518cb6d43b8202ba9a00bfe99fc3276"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void initialiserTabDyn </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Precondition : t non prealablement initialise Postcondition : t initialise a une alveole vide (taille utilisee nulle) </p>

</div>
</div>
<a class="anchor" id="aada509c790300e62cbf3178d939efc3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void modifierValeurIemeElementTabDyn </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMur.html">Mur</a>&#160;</td>
          <td class="paramname"><em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Precondition : t prealablement initialise et 0 &lt;= i &lt; tailleUtilisee(t) Postcondition : le i+1eme ElementTD de t vaut e </p>

</div>
</div>
<a class="anchor" id="a0d10365670f81c1e95814816e88ddcbf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void supprimerElementTabDyn </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Precondition : t prealablement initialise et non vide Postcondition : la taille utilisee du tableau est decrementee de 1. Si tailleUtilisee &lt; capacite/3, alors on divise la capacité par 2. </p>

</div>
</div>
<a class="anchor" id="a97652ca47cabac75b55c4f903426829f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structMur.html">Mur</a>* TabDynGetAd </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>tabDyn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>assesseur de ad </p>

</div>
</div>
<a class="anchor" id="a5d99cce0e2fa7264c4f3720733265ee8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int TabDynGetCapacite </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>tabDyn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>assesseur de capacite </p>

</div>
</div>
<a class="anchor" id="a334deff5c3a02d2edcbfe3a3f3ff268c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int TabDynGetTaille_utilisee </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>tabDyn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>assesseur de taille_utilisee </p>

</div>
</div>
<a class="anchor" id="a7639e87e155a70b5e5dc9966be1aa824"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TabDynSetAd </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>tabDyn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMur.html">Mur</a> *&#160;</td>
          <td class="paramname"><em>ad</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>mutateur de ad </p>

</div>
</div>
<a class="anchor" id="ac3727554725b9dbecddb71139dc5e30d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TabDynSetCapacite </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>tabDyn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>capacite</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>mutateur de capacite </p>

</div>
</div>
<a class="anchor" id="a10623d69df4ce5b6456f98fda9365ae3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TabDynSetTaille_utilisee </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>tabDyn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>taille</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>mutateur de taille_utilisee </p>

</div>
</div>
<a class="anchor" id="a23c700cab62fac5e751c347b9248dc18"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void testamentTabDyn </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Precondition : t prealablement initialise
</pre><p> Postcondition : t pret a disparaitre. La memoire allouee dynamiquement est liberee. On ne pourra plus appeler les sous-programmes qui necessitent que t soit initialise. </p>

</div>
</div>
<a class="anchor" id="a4613ebad51d49ffd47fcf53c829fa40e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structMur.html">Mur</a> valeurIemeElementTabDyn </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structTableauDynamique.html">TableauDynamique</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Precondition : t prealablement initialise, 0 &lt;= i &lt; tailleUtilisee(t) Resultat : retourne le i+1eme ElementTD de t </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Apr 6 2013 13:49:24 for TRON-SDL by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
